package com.zgs.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zgs.common.utils.PageUtils;
import com.zgs.mall.order.entity.OrderEntity;
import com.zgs.mall.order.to.SeckillOrderTo;
import com.zgs.mall.order.vo.OrdeerConfirmVo;
import com.zgs.mall.order.vo.SubmitOrderResponse;
import com.zgs.mall.order.vo.SubmitVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author zgs
 * @email 
 * @date 2020-07-12 14:55:26
 */

public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void test();

    OrdeerConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponse submitOrder(SubmitVo submitVo);

    void seataTesta() throws ExecutionException, InterruptedException;

    OrderEntity getOrderStatus(String orderSn);


    void orderClose(OrderEntity entity);

    void createSeckillOrder(SeckillOrderTo orderTo);

}

